<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Moviecat</title>
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="css/app.css">
    <link rel="stylesheet" href="css/subject.css">
</head>
<!--添加ng-app movie.mainApp-->
<body ng-app="movie.mainApp">
<!--添加ng-controller movie.mainCtrl-->
<nav ng-controller="movie.mainCtrl"  class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Moviecat</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <!--利用表单form的ng-submit  完成按enter提交-->
            <form  class="navbar-form navbar-right"  ng-submit="searchEnter()">
                <!--ng-model绑定搜索的内容-->
                <input ng-model="searchText" type="text" class="form-control" placeholder="搜索">
            </form>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <!--给a标签绑定跳转地址-->
                <li><a href="#/in_theaters">正在热映</a></li>
                <li><a href="#/coming_soon">即将上映</a></li>
                <li><a href="#/top250">TOP250</a></li>
            </ul>
        </div>
        <!-- 主要的内容区域 -->
        <!--ng-view内容显示区-->
        <div ng-view  class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        </div>
    </div>
</div>
</body>
<!--1引用标签-->
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-route/angular-route.js"></script>
<!--主模块-->
<script src="modules/main/module.js"></script>
<script src="modules/main/route.js"></script>
<script src="modules/services/httpProServices.js"></script>
<!--正在热映-->
<script src="modules/in_theaters/module.js"></script>
<script src="modules/in_theaters/route.js"></script>
<!--电影详细页-->
<script src="modules/subject/module.js"></script>
<script src="modules/subject/route.js"></script>
<!--即将上映-->
<script src="modules/coming_soon/module.js"></script>
<script src="modules/coming_soon/route.js"></script>
<!--top250-->
<script src="modules/top250/module.js"></script>
<script src="modules/top250/route.js"></script>
<!--搜索-->
<script src="modules/searchMovie/module.js"></script>
<script src="modules/searchMovie/route.js"></script>
<!--按类型搜索-->
<script src="modules/searchMovie_type/module.js"></script>
<script src="modules/searchMovie_type/route.js"></script>
</html>
